package com.infore.remoteControl.entity.instructionsEntity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;


/**
 * 指令类型类
 * @author Cold
 *
 */
@Entity
@Table(name="INSTRUCTIONS_TYPE")
@NamedQuery(name="InstructionsType.findAll", query="SELECT i FROM InstructionsType i")
public class InstructionsType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="INSTRUCTIONS_TYPE_ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String instructionsTypeId;
	
	/** 指令类型编号 **/
	@Column(name="CODE", unique = true, length = 10)
	private String code;
	
	/** 指令类型名称 **/
	@Column(name="NAME", unique = true, length = 20)
	private String name;

	public InstructionsType() {
	}

	public String getInstructionsTypeId() {
		return instructionsTypeId;
	}

	public void setInstructionsTypeId(String instructionsTypeId) {
		this.instructionsTypeId = instructionsTypeId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}